<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        /* 
            不怎么用,可以粗略了解的办法
        */
        var Animal = (function(){
            function Animal(){

            }
            return Animal
        })()

        var Cat = (function(){
            function Cat(){

            }
            Cat.prototype = new Animal()
            return Cat
        })()
        var cat = new Cat()
        Cat instanceof Animal

    </script>
</head>
<body>
    
</body>
</html>